home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2002 January
/
PCWorld_2002-01_cd.bin
/
Novinky
/
Becher
/
1. Zlaty Kalich
/
ZlatyKalich.exe
/
scripts
/
frame_1992
/
DoAction.as
Wrap
Text File
|
2001-11-12
|
11KB
|
378 lines
function items_hide()
{
ihpom = 1;
while(ihpom < 27)
{
setProperty("_root.i" add ihpom, _visible, false);
ihpom++;
}
ihpom = 1;
while(ihpom < 17)
{
setProperty("_root.m" add ihpom, _visible, false);
ihpom++;
}
}
function playmusic()
{
if(_root._currentframe >= 1951 && 1952 >= _root._currentframe)
{
getUrl("FSCommand:exec", "player.exe\tkarluvm.mid");
}
else if(_root._currentframe >= 1953 && 1957 >= _root._currentframe)
{
getUrl("FSCommand:exec", "player.exe\tcesko.mid");
}
else if(_root._currentframe >= 1958 && 1960 >= _root._currentframe)
{
getUrl("FSCommand:exec", "player.exe\trusko.mid");
}
else if(_root._currentframe == 1961)
{
getUrl("FSCommand:exec", "player.exe\tstakan.mid");
}
else if(_root._currentframe >= 1962 && 1965 >= _root._currentframe)
{
getUrl("FSCommand:exec", "player.exe\tbunkr.mid");
}
else if(_root._currentframe == 1968)
{
getUrl("FSCommand:exec", "player.exe\tchram.mid");
}
else if(_root._currentframe >= 1966 && 1969 >= _root._currentframe)
{
getUrl("FSCommand:exec", "player.exe\tjaponsko.mid");
}
else if(_root._currentframe == 1972)
{
getUrl("FSCommand:exec", "player.exe\tcasino.mid");
}
else if(_root._currentframe >= 1970 && 1973 >= _root._currentframe)
{
getUrl("FSCommand:exec", "player.exe\tusa.mid");
}
}
function savegame()
{
getURL("FSCommand:exec","command.com\t/c\techo\t&msdvere=" add _root.msdvere add "&texts=" add _root.texts add "&english=" add _root.english add "&zidstate=" add _root.zidstate add "&partituruma=" add _root.partituruma add "&ruzynenav=" add _root.ruzynenav add "&kosstate=" add _root.kosstate add "&prachy=" add _root.prachy add "&truhla=" add _root.truhla add "&" add "\t" add ">" add "becher0.sav");
getURL("FSCommand:exec","command.com\t/c\techo\t&romano=" add _root.romano add "&romstate=" add _root.romstate add "&certifikat=" add _root.certifikat add "&prase=" add _root.prase add "&letenka=" add _root.letenka add "&" add "\t" add ">" add "becher2.sav");
getURL("FSCommand:exec","command.com\t/c\techo\t&hlidachlida=" add _root.hlidachlida add "&vodkadverestate=" add _root.vodkadverestate add "&klicsebrat=" add _root.klicsebrat add "&generaljede=" add _root.generaljede add "&pasakstate=" add _root.pasakstate add "&fotakstate=" add _root.fotakstate add "&obraz=" add _root.obraz add "&" add "\t" add ">" add "becher3.sav");
getURL("FSCommand:exec","command.com\t/c\techo\t&platilslapce=" add _root.platilslapce add "&sprejerkastate=" add _root.sprejerkastate add "&sunastate=" add _root.sunastate add "&sunakecystate=" add _root.sunakecystate add "&knihastate=" add _root.knihastate add "&ropestate=" add _root.ropestate add "&dalklenoty=" add _root.dalklenoty add "&" add "\t" add ">" add "becher4.sav");
getURL("FSCommand:exec","command.com\t/c\techo\t&budhastate=" add _root.budhastate add "&droggang=" add _root.droggang add "&ozralastate=" add _root.ozralastate add "&bednahofstate=" add _root.bednahofstate add "&hoffmanstate=" add _root.hoffmanstate add "&" add "\t" add ">" add "becher5.sav");
getURL("FSCommand:exec","command.com\t/c\techo\t&rozbuskastate=" add _root.rozbuskastate add "&turistastate=" add _root.turistastate add "&fbistate=" add _root.fbistate add "&zetonystate=" add _root.zetonystate add "&mnichstate=" add _root.mnichstate add "&" add "\t" add ">" add "becher6.sav");
getURL("FSCommand:exec","command.com\t/c\techo\t&cf=" add _root._currentframe add "&pepacf=" add _root.pepa._currentframe add "&poz=" add _root.poz add "&qvality=" add _root.qvality add "&ifs=" add _root.ifs add "&imusic=" add _root.imusic add "&" add "\t" add ">" add "becher7.sav");
getURL("FSCommand:exec","command.com\t/c\techo\t&itt0=" add _root.itembar[0] add "&itt1=" add _root.itembar[1] add "&itt2=" add _root.itembar[2] add "&itt3=" add _root.itembar[3] add "&itt4=" add _root.itembar[4] add "&" add "\t" add ">" add "becher8.sav");
getURL("FSCommand:exec","command.com\t/c\techo\t&itt5=" add _root.itembar[5] add "&itt6=" add _root.itembar[6] add "&itt7=" add _root.itembar[7] add "&itt8=" add _root.itembar[8] add "&itt9=" add _root.itembar[9] add "&" add "\t" add ">" add "becher9.sav");
getURL("FSCommand:exec","command.com\t/c\techo\t&itt10=" add _root.itembar[10] add "&itt11=" add _root.itembar[11] add "&itt12=" add _root.itembar[12] add "&itt13=" add _root.itembar[13] add "&itt14=" add _root.itembar[14] add "&itt15=" add _root.itembar[15] add "&" add "\t" add ">" add "becher1.sav");
}
function itembar_add(itemn)
{
_root.itembar.push(itemn);
itembar_refresh();
}
function itembar_remove(itemn)
{
irpomocna = 0;
irfind = false;
while(irpomocna < _root.itembar.length && !irfind)
{
if(_root.itembar[irpomocna] == itemn)
{
irfind = true;
}
else
{
irpomocna++;
}
}
if(irfind)
{
_root.itembar.splice(irpomocna,1);
}
itembar_refresh();
}
function itembar_refresh()
{
items_hide();
irpom = 0;
while(irpom < _root.itembar.length)
{
setProperty("_root.i" add _root.itembar[irpom], _X, (irpom + 1) * 45);
setProperty("_root.i" add _root.itembar[irpom], _Y, 29);
setProperty("_root.i" add _root.itembar[irpom], _visible, true);
setProperty("_root.m" add (irpom + 1), _visible, true);
irpom++;
}
}
function itemrollover(x)
{
if(x == 1)
{
return "letenka na t�den do v�ech st�t�";
}
if(x == 2)
{
return "portr�t Jan K.Lich od ��len� mal��ky";
}
if(x == 3)
{
return "semtex";
}
if(x == 4)
{
return "d�lkov� odpalova� plastick�ch trhavin";
}
if(x == 5)
{
return "kompletn� devasta�n� za��zen�";
}
if(x == 6)
{
return "d�rek od americk�ho �ida pro jeho bratra";
}
if(x == 7)
{
return "p��idlo (crowbar)";
}
if(x == 8)
{
return "korunova�n� klenoty �esk�ch kr�l�";
}
if(x == 9)
{
return "Certifik�t prot�el�ho obchodn�ka";
}
if(x == 10)
{
return "japonsk� noviny";
}
if(x == 11)
{
return "Playboy";
}
if(x == 12)
{
return "kl�� od lihovaru";
}
if(x == 13)
{
return "kniha o �ifr�ch US army";
}
if(x == 14)
{
return "identifika�n� karta KGB";
}
if(x == 15)
{
return "znamenit� fotoapar�t";
}
if(x == 16)
{
return "so�ka Buddhy jaksi podivn� magick�";
}
if(x == 17)
{
return "prase z pozinkovan� hov�ziny";
}
if(x == 18)
{
return "er�rn� �etony";
}
if(x == 19)
{
return "p�kn� pakl �eton�";
}
if(x == 20)
{
return "poh�dkov� bohatstv� v �etonech";
}
if(x == 21)
{
return "z�pis notov� partitury pro fagot a lesn� roh";
}
if(x == 22)
{
return "sprej barevn�";
}
if(x == 23)
{
return "pevn� provaz";
}
if(x == 24)
{
return "Hovmazovy slzy - smrt�c� patok";
}
if(x == 25)
{
return "moje pen�zky, " add _root.prachy add " korunek �esk�ch";
}
if(x == 26)
{
return "fotky pa�er�k� drog, corpus delicti";
}
return "ERROR";
}
function itemrollover2(x)
{
if(x == 1)
{
return "letenku na t�den do v�ech st�t�";
}
if(x == 2)
{
return "portr�t Jan K.Lich od ��len� mal��ky";
}
if(x == 3)
{
return "semtex";
}
if(x == 4)
{
return "d�lkov� odpalova� plastick�ch trhavin";
}
if(x == 5)
{
return "kompletn� devasta�n� za��zen�";
}
if(x == 6)
{
return "d�rek od americk�ho �ida pro jeho bratra";
}
if(x == 7)
{
return "p��idlo (crowbar)";
}
if(x == 8)
{
return "korunova�n� klenoty �esk�ch kr�l�";
}
if(x == 9)
{
return "Certifik�t prot�el�ho obchodn�ka";
}
if(x == 10)
{
return "japonsk� noviny";
}
if(x == 11)
{
return "Playboy";
}
if(x == 12)
{
return "kl�� od lihovaru";
}
if(x == 13)
{
return "knihu o �ifr�ch US army";
}
if(x == 14)
{
return "identifika�n� kartu KGB";
}
if(x == 15)
{
return "znamenit� fotoapar�t";
}
if(x == 16)
{
return "so�ku Buddhy jaksi podivn� magickou";
}
if(x == 17)
{
return "prase z pozinkovan� hov�ziny";
}
if(x == 18)
{
return "er�rn� �etony";
}
if(x == 19)
{
return "p�kn� pakl �eton�";
}
if(x == 20)
{
return "poh�dkov� bohatstv� v �etonech";
}
if(x == 21)
{
return "z�pis notov� partitury pro fagot a lesn� roh";
}
if(x == 22)
{
return "sprej barevn�";
}
if(x == 23)
{
return "pevn� provaz";
}
if(x == 24)
{
return "Hovmazovy slzy - smrt�c� patok";
}
if(x == 25)
{
return "moje pen�zky, " add _root.prachy add " korunek �esk�ch";
}
if(x == 26)
{
return "fotky pa�er�k� drog, corpus delicti";
}
return "ERROR";
}
function stopdragall()
{
stopDrag();
_root.draglej = 0;
_root.itembar_refresh();
}
_root.kbotyl._visible = false;
_root.kbotyr._visible = false;
_root.kpusa._visible = false;
_root.kuse._visible = false;
_root.kplane._visible = false;
_root.klupa._visible = false;
_root.msdvere = 0;
_root.texts = 1.5;
_root.draglej = 0;
_root.zidstate = 0;
_root.partituruma = 0;
_root.ruzynenav = 0;
_root.kosstate = 0;
_root.prachy = 1000;
_root.truhla = 0;
_root.romano = 0;
_root.romstate = 0;
_root.certifikat = 0;
_root.prase = 0;
_root.letenka = 0;
_root.hlidachlida = 1;
_root.vodkadverestate = 0;
_root.klicsebrat = 0;
_root.generaljede = 0;
_root.pasakstate = 0;
_root.fotakstate = 0;
_root.obraz = 0;
_root.platilslapce = 0;
_root.sprejerkastate = 0;
_root.sunastate = 0;
_root.sunakecystate = 0;
_root.knihastate = 0;
_root.ropestate = 0;
_root.dalklenoty = 0;
_root.budhastate = 0;
_root.droggang = 0;
_root.ozralastate = 0;
_root.bednahofstate = 0;
_root.hoffmanstate = 0;
_root.rozbuskastate = 0;
_root.turistastate = 0;
_root.fbistate = 0;
_root.zetonystate = 0;
_root.mnichstate = 0;
_root.qvality = 1;
_root.ifs = 1;
_root.imusic = 1;
_root.itembar = new Array();
itembar_add(25);